import Vue from 'vue'
import Vuex from 'vuex'


import music from './music' 
import user from './user'
import book from './book'
import home from './home'
import app from './app'
import movies from './movies'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {

        // 音乐
        ...music.state,


        // 用户
        ...user.state,


        // 影视
        ...movies.state,


        // 书籍
        ...book.state,


        // 首页
        ...home.state,


        // APP
        ...app.state,
    },
    mutations: {

        // 音乐
        ...music.mutations,


        // 用户
        ...user.mutations,


        // 影视
        ...movies.mutations,


        // 书籍
        ...book.mutations,


        // 首页
        ...home.mutations,


        // APP
        ...app.mutations,
    },
    actions: {

        // 音乐
        ...music.actions,


        // 用户
        ...user.actions,


        // 影视
        ...movies.actions,


        // 书籍
        ...book.actions,


        // 首页
        ...home.actions,


        // APP
        ...app.actions,
    },
})
